package com.linkage.lcims.base.dao.cdma.impl;

import java.util.List;

import com.linkage.lcims.base.dao.HibernateBaseDAOImpl;
import com.linkage.lcims.base.dao.cdma.interfaces.HaTunnelDAO;
import com.linkage.lcims.base.po.cdma.CHaTunnel;
import com.linkage.util.exception.DAOException;

public class HaTunnelDAOImpl extends HibernateBaseDAOImpl implements
		HaTunnelDAO {

	public void deleteHaTunnel(CHaTunnel haTunnel) throws DAOException {
		this.delete(haTunnel);
	}

	@SuppressWarnings("unchecked")
	public List<CHaTunnel> getAll() throws DAOException {
		return this.getAll(CHaTunnel.class);
	}

	public CHaTunnel getHaTunnel(String haip) throws DAOException {
		return (CHaTunnel)this.getByID(CHaTunnel.class, haip);
	}

	public void saveHaTunnel(CHaTunnel haTunnel) throws DAOException {
		this.save(haTunnel);
	}

	public void updateHaTunnel(CHaTunnel haTunnel) throws DAOException {
		this.merge(haTunnel);
	}

}
